package com.hlingsoft.kkh.entity;

import java.util.Date;

/**
 * Created by selbylei on 2015/6/17.
 */
public class Chat {
    private long id;
    private long myId;
    private String myName;
    private String myImageHead;
    private long toId;
    private String toName;
    private String toImageHead;
    private String content;
    private int type;   //1.发送 2.回复
    private Date createTime;
    private Date updateTime;
    private int available; //是否有效
    private String typeShow;

    public String getTypeShow() {
        if (this.type==1){
            return "发送";
        } else if (this.type==2){
            return "回复";
        }
        return "";
    }

    public void setTypeShow(String typeShow) {
        this.typeShow = typeShow;
    }

    public String getMyName() {
        return myName;
    }

    public void setMyName(String myName) {
        this.myName = myName;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getMyId() {
        return myId;
    }

    public void setMyId(long myId) {
        this.myId = myId;
    }

    public String getMyImageHead() {
        return myImageHead;
    }

    public void setMyImageHead(String myImageHead) {
        this.myImageHead = myImageHead;
    }

    public long getToId() {
        return toId;
    }

    public void setToId(long toId) {
        this.toId = toId;
    }

    public String getToImageHead() {
        return toImageHead;
    }

    public void setToImageHead(String toImageHead) {
        this.toImageHead = toImageHead;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getAvailable() {
        return available;
    }

    public void setAvailable(int available) {
        this.available = available;
    }
}
